Learn R Programming

pi0 (version 1.4-1)

pavaf1 : pooling adjacent violator algorithm estimate of p-value density at 1

Description

pooling adjacent violator algorithm estimate of p-value density at 1

Usage

pavaf1(p,max.bins=20,bin.method=c("max","Sturges","Scott","FD"),
                discrete=FALSE,plotit=FALSE,...)

Arguments

p

p-value vector

max.bins

max number of bins

bin.method

binning method

discrete

logical: whether p-values are discrete.

plotit

logical: whether results are plotted.

...

Other arguments to hist

Value

Numeric scalar

Details

This function bin the p-values and then run PAVA to estimate the minimum of its density.